package com.cmict.data.infra.convert.source;

import java.util.*;

import com.cmict.data.framework.common.pojo.PageResult;

import com.cmict.data.infra.api.rdb.dto.SourceDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.cmict.data.infra.controller.admin.source.vo.*;
import com.cmict.data.infra.dal.dataobject.source.SourceDO;

/**
 * 数据源 Convert
 *
 * @author awesome1114
 */
@Mapper
public interface SourceConvert {

    SourceConvert INSTANCE = Mappers.getMapper(SourceConvert.class);

     SourceDTO INSTANCE03(SourceDO sourceDO) ;

    SourceDO convert(SourceCreateReqVO bean);

    SourceDO convert(SourceUpdateReqVO bean);

    SourceRespVO convert(SourceDO bean);

    List<SourceRespVO> convertList(List<SourceDO> list);

    PageResult<SourceRespVO> convertPage(PageResult<SourceDO> page);

    List<SourceExcelVO> convertList02(List<SourceDO> list);

}
